import { EntityMapPoint } from "./EntityMapPoint";
import { EForce } from "../../../../../Message/Public/EForce";
import { GlobalClass } from "../../../../../com/mui/core/GlobalClass";
import { ImagesConst } from "../../../resource/ImagesConst";
//class EntityRobFlagMapPoint
    
    export  class EntityRobFlagMapPoint extends EntityMapPoint
    {
        constructor()
        {
            super();
            return;
        }

        protected /* override */ updatePointView(): void
        {
            if (_entityPoint) 
            {
                var loc1=_entityPoint.relationType;
                switch (loc1) 
                {
                    case EForce._EForceOne:
                    {
                        _bitMap.bitmapData = GlobalClass.getBitmapData(ImagesConst.RobFlag_RegFlag);
                        break;
                    }
                    case EForce._EForceTwo:
                    {
                        _bitMap.bitmapData = GlobalClass.getBitmapData(ImagesConst.RobFlag_BlueFlag);
                        break;
                    }
                }
                _bitMap.x = (-_bitMap.width) / 2;
                _bitMap.y = (-_bitMap.height) / 2;
            }
            return;
        }
    }
